<template>
    <div class="plugin-container">
        <!-- <router-view></router-view> -->

        <el-card >
            <div slot="header" class="clearfix">
                <span>店铺扩展</span>            
            </div>
            <el-row :gutter="12" class="plugin-items">
                <el-col :span="6" >
                    <div @click="gotableManage">
                        <el-card shadow="hover" class="plugin-item" >
                        
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">桌位管理</div>
                         </el-card>
                    </div>
                    
                </el-col>
            </el-row>

        </el-card>
        <el-card >
            <div slot="header" class="clearfix">
                <span>营销工具</span>            
            </div>
            <el-row :gutter="12" class="plugin-items">
                <el-col :span="6" >
                    <el-card shadow="hover" class="plugin-item">
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">优惠券</div>
                         </el-card>
                </el-col>
                <el-col :span="6" >
                    <el-card shadow="hover" class="plugin-item">
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">满减</div>
                         </el-card>
                </el-col>
                 <el-col :span="6" >
                    <el-card shadow="hover" class="plugin-item">
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">支付有礼</div>
                         </el-card>
                </el-col>
                 <el-col :span="6" >
                    <el-card shadow="hover" class="plugin-item">
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">优惠券</div>
                         </el-card>
                </el-col>
                
            </el-row>
            <el-row :gutter="12" class="plugin-items">
                 <el-col :span="6" >
                    <el-card shadow="hover" class="plugin-item">
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">限时折扣</div>
                         </el-card>
                </el-col>
                 <el-col :span="6" >
                    <el-card shadow="hover" class="plugin-item">
                            <i class="el-icon-third-canzhuo plugin-icon"></i> 
                            <div class="item-title">进店有礼</div>
                         </el-card>
                </el-col>
            </el-row>

        </el-card>
        
    </div>
</template>
<script>
export default {
    data(){
        return {}
    },
    methods:{
        gotableManage(){
            console.log('gototable')
            // debugger;
            // tableManagePage
            this.$router.push({path: '/tableManage'});
        }
    }

}
</script>
<style lang="scss" scoped>
.plugin-container{
    .plugin-items{
        // padding: 0;
        margin: 10px;
        // background-color: #f2f2f2;
        .plugin-item{
            // width: 200px;
            padding:0;
            background-color: #f2f2f2;
            cursor:pointer;
            :hover{
                background-color: rgb(226, 226, 226);
            }
            
            .plugin-icon{
                width: 30px;
                padding:5px;
                height: 30px;
                text-align: center;
                vertical-align: middle;
                color: white;
                font-size: 24px;
                line-height: 30px;
                // text-indent: 
                background-color: rgb(81, 140, 248);
            }
            .item-title{
                text-indent: 1em;
                display: inline-block;
                font-weight: 700;
            }

        }

    }
}
</style>


